#rights reserved
cmake_minimum_required(VERSION 3.6)

#project name
set(PROJECT_NAME "libxcom")
option(LIBXCOM_TEST "test mode" ON)
add_definitions(-D__STDC_FORMAT_MACROS)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src DIRSRCS)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/include DIRHDRS)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_library("xcom" ${DIRSRCS} ${DIRHDRS} ${CMAKE_CURRENT_SOURCE_DIR}/include/xvalue.h)
target_link_libraries("xcom" utils)

if(LIBXCOM_TEST)
    enable_testing()
    add_subdirectory(test)
endif()
